package com.zxl.grocery.microservice.template;

import com.zxl.grocery.microservice.auth.client.EnableGroceryAuthClient;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 * Created by Administrator on 2017/12/27 0027.
 */
@EnableEurekaClient
@SpringBootApplication
// 开启服务鉴权
@EnableFeignClients({"com.zxl.grocery.microservice.auth.client.feign"})
@EnableGroceryAuthClient
public class TemplateBootstrap {
    public static void main(String[] args) {
        new SpringApplicationBuilder(TemplateBootstrap.class).web(true).run(args);    }
}
